package fpzhan.plane.program.struct;

import com.alibaba.fastjson.JSONObject;
import fpzhan.plane.program.compose.ComposeContext;
import fpzhan.plane.program.compose.ComposeContent;

public abstract class CodeBlockStruct {

    private String name;

    public CodeBlockStruct(String name) {
        this.name = name;
    }

    public abstract JSONObject struct(ComposeContext composeContext, ComposeContent composeContent, JSONObject json) throws Exception;

    public String getName() {
        return name;
    }
}
